package org.cpar.compiler;

public class CPARContextData {

	private String name;
	private Object data;

	private final CPARContext owner;

	public CPARContextData(String name, Object data, CPARContext owner) {
		this.owner = owner;
		this.data = data;
		this.name = name;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public CPARContext getOwner() {
		return owner;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getPath(){
		return getOwner().getStackVarName() + "->" + name;
	}

}
